package com.tensquare.qa.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author Macross
 * @Type Problem.java
 * @Desc 问题信息实体类
 * @date 2019/12/17 16:44
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "tb_problem")
@ApiModel(description = "问题信息")
public class Problem {

    @Id
    @ApiModelProperty(value = "ID")
    private String id;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "内容")
    private String content;

    @Column(name = "createtime")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;

    @Column(name = "updatetime")
    @ApiModelProperty(value = "修改日期")
    private Date updateTime;

    @Column(name = "userid")
    @ApiModelProperty(value = "用户ID")
    private String userId;

    @ApiModelProperty(value = "昵称")
    @Column(name = "nickname")
    private String nickName;

    @ApiModelProperty(value = "浏览量")
    private Long visits;

    @ApiModelProperty(value = "点赞数")
    private Long thumbup;

    @ApiModelProperty(value = "回复数")
    private Long reply;

    @ApiModelProperty(value = "是否解决")
    private String solve;

    @Column(name = "replyname")
    @ApiModelProperty(value = "回复人昵称")
    private String replyName;

    @Column(name = "replytime")
    @ApiModelProperty(value = "回复日期")
    private Date replyTime;

}
